package com.softwaredesign.springboot.service;

import com.softwaredesign.springboot.entity.Authority;
import com.softwaredesign.springboot.mapper.AuthorityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthorityService {

    @Autowired
    private AuthorityMapper authorityMapper;

    public int save(Authority authority) {
        return authorityMapper.update(authority);
    }
}
